/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.repository.pm;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import com.poltman.dscentral.db.entity.dspace.EPersonEntity;
import com.poltman.dscentral.db.entity.pm.BaseUserEntity;



/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1532 $
 *
 */
public interface BaseUserRepository extends JpaRepository<BaseUserEntity, Integer> {
	
	public BaseUserEntity findByEpersonId(Integer epersonId);
	
	@Transactional
	public BaseUserEntity save(BaseUserEntity baseUserEntity);

}
